(function(){

    //入口
    window.main = function()
    {
        var app = this;
        app.checkSessionServiceName = "mission.account.checksession"; 
        app.loginServiceName = "";
         
        var editorHeight = document.body.clientHeight - 90; 
        var sdk = document.getElementById("sdk").value; 
        var key = document.getElementById("docKey")?.value; 
        var title = document.getElementById("docTitle").value; 
        var name = document.getElementById("docName")?.value; 
        var plugin = document.getElementById("pluginUrl")?.value; 
        var downloadService = document.getElementById("downloadService").value; 
        var showIndex = document.getElementById("showIndex").value==='true'; 
        //展示窗体
        Rsd.create('Rsd.tool.MarkdownViewer',{
                src:plugin +'?h='+editorHeight,
                data:{ 
                    Key:key, 
                    Title:title,
                    Name:name,
                }, 
                float:false,
                header:false, 
                showIndex:showIndex,
                width:800,
                height:'100%',
                title:title,
                //data:'#this is share page',
                fileDownloadServiceName:downloadService,  
                
        }).showDialog();
    }

})()